import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Register from '@/components/Register'
import ShowExchange from '@/components/ShowExchange'
import recharge from '@/components/recharge'
import callback from '@/components/callback'
import uploadingFile from '@/components/uploadingFile'

Vue.use(Router)

  var routes = [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/showexchange',
      name: 'ShowExchange',
      component: ShowExchange
    },
    {
      path: '/recharge',
      name: 'recharge',
      component: recharge
    },
    {
      path: '/callback',
      name: 'callback',
      component: callback
    },
    {
      path: '/uploadingfile',
      name: 'uploadingFile',
      component: uploadingFile
    },
  ]


export default new Router({
  routes:routes,
  mode:'history'   /*hash*/
})